This function is used by format-specific grapics importer components to read data from the data source. It is implemented by the generic graphics importer.
extern pascal ComponentResult GraphicsImportReadData (
GraphicsImportComponent ci,
void *dataPtr,
unsigned long dataOffset,
unsigned long dataSize);
ci Specifies the component instance that identifies your connection to the graphics importer component.
dataPtr A pointer to a memory block to receive the data.
dataOffset The offset of the image data within the data reference. The function begins reading image data from this offset.
dataSize The number of bytes of image data to read.
GraphicsImportReadData communicates with the appropriate data handler to retrieve image data. Typically, only developers of graphics importer components will need to use this function. This function should always be used to retrieve data from the data source, rather than reading it directly.
noErr
|
0 | No error |
paramErr
|
-50 | Invalid parameter specified |
memFullErr
|
-108 | Not enough memory available |
| Previous | Chapter Contents | Chapter Top |